package com.eduadmin.service;

import com.eduadmin.entity.TeamCourseMedian;
import com.eduadmin.mapper.TeamCourseMedianMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author zlc001
 * */
@Service
public class TeamCourseMedianServiceImpl implements ITeamCourseMedianService {
    private final TeamCourseMedianMapper teamCourseMedianMapper;
    @Autowired
    public TeamCourseMedianServiceImpl(TeamCourseMedianMapper teamCourseMedianMapper) {
        this.teamCourseMedianMapper = teamCourseMedianMapper;
    }
    @Override
    public int batchInsert(List<TeamCourseMedian> teamCourseMedianList){
        teamCourseMedianMapper.batchInsert(teamCourseMedianList);
        return 1;
    }
    public List<TeamCourseMedian> getQueTeamCourseMedianByParams(Map<String,Object> paraMap){
        return teamCourseMedianMapper.getQueTeamCourseMedianByParams(paraMap);
    }
    public int deleteByParams(Map<String,Object> paraMap){
        teamCourseMedianMapper.deleteByParams(paraMap);
        return 1;
    }
    // 按条件查询班级学科中位数统计记录条数
    public int getTeamCourseMedianNumberByParams(Map<String,Object> paraMap){
        return teamCourseMedianMapper.getTeamCourseMedianNumberByParams(paraMap);
    }
}
